package leader.action;

import leader.service.DirectTreatiseService;
import teacher.bean.Treatise;

public class DirectTreatiseCancelcheckAction {
	private Treatise treatise;

	public Treatise getTreatise() {
		return treatise;
	}

	public void setTreatise(Treatise treatise) {
		this.treatise = treatise;
	}
	public String execute() {
		System.out.println(treatise.getTreId());
		treatise.setState(0);
		DirectTreatiseService TS = new DirectTreatiseService();
		TS.updateTreatiseState(treatise);
		return "success";
	}
}
